package com.lap.framework.common.exception;

import lombok.Getter;

@Getter
public class HttpRemoteException extends RuntimeException {

  private final int statusCode;
  private final String errorBody;

  public HttpRemoteException(int statusCode, String errorBody) {
    super("HTTP " + statusCode + ": " + errorBody);
    this.statusCode = statusCode;
    this.errorBody = errorBody;
  }
}
